ApplicationWindow

A freeform application window.

<picture> <source srcset="application-window-dark.png" media="(prefers-color-scheme: dark)"> <img src="application-window.png" alt="application-window"> </picture>

AdwApplicationWindow is a [class@Gtk.ApplicationWindow] subclass providing the same features as [class@Window].

See [class@Window] for details.

Using [property@Gtk.Application:menubar] is not supported and may result in visual glitches.

Constructors

this
this(AdwApplicationWindow* adwApplicationWindow, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(Application app)

Creates a new AdwApplicationWindow for @app.

Members

Functions

getAdwApplicationWindowStruct
AdwApplicationWindow* getAdwApplicationWindowStruct(bool transferOwnership)

Get the main Gtk struct

getContent
Widget getContent()

Gets the content widget of @self.

getStruct
void* getStruct()

the main Gtk struct as a void*

setChild
void setChild(Widget child)

You should use setContent(Widget) instead

setContent
void setContent(Widget content)

Sets the content widget of @self.

Static functions

getType
GType getType()

Variables

adwApplicationWindow
AdwApplicationWindow* adwApplicationWindow;

the main Gtk struct

Meta